package com.atguigu.cloud.controller;

import com.atguigu.cloud.api.PayFeignApi;
import com.atguigu.cloud.api.PayFeignSentinelApi;
import com.atguigu.cloud.resp.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("pay")
public class PayContorller {

    @Resource
    private PayFeignSentinelApi payFeignApi;

    @GetMapping("add")
    @Operation(summary = "新增", description = "新增支付流水")
    public ResultData<String> addPay() {
       return payFeignApi.addPay();
    }
}
